<template>
  <div>
    <div class="management-box">
      <div class="nav">
        <!-- <el-row class="tac"> -->
          <!-- <el-col :span="12"> -->
            <el-menu
              default-active="1"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
            >
              <el-menu-item index="1" @click="goTo('/management')">
                <template slot="title">
                  <i class="el-icon-s-custom"></i>
                  <span>个人信息</span>
                </template>
              </el-menu-item>
              <el-menu-item index="2" @click="goTo('/management/musicManage')" >
                <i class="el-icon-menu"></i>
                <span slot="title">歌单</span>
              </el-menu-item>
              <el-menu-item index="3" @click="goTo('/management/blogManage')">
                <i class="el-icon-document"></i>
                <span slot="title">博客</span>
              </el-menu-item>
              <el-menu-item index="4" @click="goTo('/management/messageManage')">
                <i class="el-icon-message"></i>
                <span slot="title">留言</span>
              </el-menu-item>
            </el-menu>
          <!-- </el-col> -->
        <!-- </el-row> -->
        
      </div>
      <div class="management-content">
      <router-view></router-view>
    </div>
    </div>
    
  </div>
</template>

<style scoped>
.management-box{
  width: 1200px;
  margin-top: 30px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.884);
  
}

.nav {
  width: 200px;
  display: inline-block;
  vertical-align: top;
}

.management-content{
  display: inline-block;
  width: 950px;
  min-height: 500px;
  margin-left: 15px;
  background:white;
}
</style>

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    goTo(path){
      this.$router.replace(path);
    }
  }
};
</script>
